package com.lhy.tool.generator.impl;

import com.lhy.tool.autoconfigation.GeneratorProperties;
import com.lhy.tool.generator.AbstractJavaGenerator;
import com.lhy.tool.model.Clazz;
import com.lhy.tool.model.CrudBean;
import com.lhy.tool.model.JavaAttribute;

public class DefaultJavaMapperGenerator extends AbstractJavaGenerator {

    @Override
    protected Clazz curClazz(JavaAttribute javaAttribute) {
        return javaAttribute.getMapper();
    }

    @Override
    protected void writeJavaAttribute(CrudBean crudBean, GeneratorProperties generatorProperties) {

    }

    @Override
    protected String projectPath(GeneratorProperties.Project project) {
        return project.getJavaProjectPath();
    }

    @Override
    protected String templateName() {
        return "TemplateMapper.java.ftl";
    }
}
